<?php

class Tarea_relampago extends CI_Model {
	
	function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }

    function get_tarea_relampago_active_by_id($id_tarea)
    {
    	$result = array();
    	$this->db->select('id_tarea,nombre,puntos, estado');
		$query = $this->db->get_where('tarea_relampago', array('id_tarea' => $id_tarea,'estado'=>'A' ));
    	foreach ($query->result() as $row_tarea)
		{
		    $result = $row_tarea;
		}
    	return $result; 
    }
    
}
	
/* End of file tarea_relampago.php */
/* Location: ./application/models/forms/tarea_relampago.php */